import Layout from '../views/layout/Layout';
const _import = require('./_import_' + process.env.NODE_ENV);
const BaseMenu = {
    path: '/baseManager',
    component: Layout,
    name: '基础配置管理',
    meta: {
      title: '基础配置管理',
      icon: 'lock'
    },
    authority: 'baseManager',
    children: [{
      path: 'platformManager',
      component: _import('admin/platform/index'),
      name: '平台管理',
      meta: {
        title: '平台管理',
        icon: 'chart'
      },
      authority: 'platformManager'
    }, {
      path: 'userManager',
      component: _import('admin/user/index'),
      name: '用户管理',
      meta: {
        title: '用户管理',
        icon: 'component'
      },
      authority: 'userManager'
    }, {
      path: 'menuManager',
      component: _import('admin/menu/index'),
      name: '菜单管理',
      meta: {
        title: '菜单管理',
        icon: 'chart'
      },
      authority: 'menuManager'
    }, {
      path: 'deptManager',
      component: _import('admin/dept/index'),
      name: '部门管理',
      meta: {
        title: '部门管理',
        icon: 'chart'
      },
      authority: 'deptManager'
    }, {
      path: 'roleManager',
      component: _import('admin/role/index'),
      name: '角色管理',
      meta: {
        title: '角色管理',
        icon: 'chart'
      },
      authority: 'roleManager'
    }, {
      path: 'dictManager',
      icon: 'form',
      component: _import('admin/dict/index'),
      name: '数据字典',
      meta: {
        title: '数据字典',
        icon: 'form'
      },
      authority: 'dictManager'
    }, {
      path: 'configManager',
      icon: 'form',
      component: _import('admin/config/index'),
      name: '系统配置管理',
      meta: {
        title: '系统配置管理',
        icon: 'form'
      },
      authority: 'configManager'
    }, {
      path: 'gateLogManager',
      icon: 'excel',
      component: _import('admin/gateLog/index'),
      name: '操作日志管理',
      meta: {
        title: '操作日志管理',
        icon: 'excel'
      },
      authority: 'gateLogManager'
    }]
  }

export default BaseMenu;